﻿<?xml version="1.0" encoding="utf-8" ?>
<Page xmlns="http://www.baojiansoft.com/schemas/dynamicpage" ObjectId="ConcreteDataManagement" Type="BaoJianSoft.Platform.Web.DynamicPage.ConcreteDataManagement, BaoJianSoft.Platform">
	<Title>$ConcreteDataCategory.Text$ $Resources.Membership.Management, BaoJianSoft.Web$</Title>
	<PermissionValue>$ConcreteDataCategory.Value$Management</PermissionValue>
	<Panels>
		<QueryPanel HeaderText="$Resources.Membership.Query, BaoJianSoft.Web$ $ConcreteDataCategory.Text$">
			<TextBox FieldName="Name" Label="$Resources.Membership.Name, BaoJianSoft.Web$: " />
			<TextBox FieldName="Value" Label="$Resources.Membership.Value, BaoJianSoft.Web$: " />
			<CheckBoxGroup FieldName="DeleteStatus" Label="$Resources.Membership.Status, BaoJianSoft.Web$: " FieldValueType="BaoJianSoft.Platform.DeleteStatus, BaoJianSoft.Platform" Occupation="1">
				<Item Checked="true" Text="$Resources.Membership.Enabled, BaoJianSoft.Web$" Value="NotDeleted" />
				<Item Text="$Resources.Membership.Disabled, BaoJianSoft.Web$" Value="Deleted" />
			</CheckBoxGroup>
		</QueryPanel>
		
		<ButtonPanel ButtonAlignment="Left">
			<Button CommandArgument="New" Type="NewImage" ToolTip="$Resources.Membership.Add, BaoJianSoft.Web$" />
		</ButtonPanel>
		
		<GridViewPanel HeaderText="$Resources.Membership.QueryResults, BaoJianSoft.Web$"
			EntityName="$ConcreteDataCategory.Text$"
			EnabledCheckBoxField="true"
			PageSize="25"
			PrimaryKeyFieldName="Id"
			DefaultSortField="LastUpdatedDate"
			DefaultSortDirection="DESC">
			<ViewButton />
			<EditButton />
			<DeleteButton />
			<Fields>
				<Field FieldName="Name" HeaderText="$Resources.Membership.Name, BaoJianSoft.Web$" />
				<Field FieldName="Value" HeaderText="$Resources.Membership.Value, BaoJianSoft.Web$" />
				<Field FieldName="DeleteStatus" HeaderText="$Resources.Membership.Status, BaoJianSoft.Web$" Width="60">
					<Transform-Switch>
						<Case Value="NotDeleted">&lt;span style='color:green'&gt;$Resources.Membership.Enabled, BaoJianSoft.Web$&lt;/span&gt;</Case>
						<Case Value="Deleted">&lt;span style='color:red'&gt;$Resources.Membership.Disabled, BaoJianSoft.Web$&lt;/span&gt;</Case>
					</Transform-Switch>
				</Field>
				<Field FieldName="LastUpdatedBy" HeaderText="$Resources.Membership.ModifiedBy, BaoJianSoft.Web$" Align="Center">
					<Transform-Callback Type="BaoJianSoft.Platform.Web.DynamicPage.GridViewFieldValueTransformCallback.ShowUserDisplayName, BaoJianSoft.Platform"/>
				</Field>
				<Field FieldName="LastUpdatedDate" HeaderText="$Resources.Membership.ModifiedOn, BaoJianSoft.Web$" Align="Center" Width="150" />
				<RowView FieldName="Description" />
			</Fields>
		</GridViewPanel>
		
		<DetailPanel HeaderText="$ConcreteDataCategory.Text$ $Resources.Membership.Profile, BaoJianSoft.Web$" ShowMessageAfterSavedSuccessfully="false">
			<Type>BaoJianSoft.Platform.Web.DynamicPage.ConcreteDataDetailPanel, BaoJianSoft.Platform</Type>
			<SkinPath>~/Templates/Platform/ConcreteData.ascx</SkinPath>
			<SaveButton />
			<CancelButton />
		</DetailPanel>
	</Panels>
</Page>